package com.edu.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.edu.entity.Article;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ArticleMapper extends BaseMapper<Article> {

    int updateByCondition(Article record);

    List<Article> selectListByPage(@Param(value = "author") Long author,
                                   @Param(value = "schoolId")Long schoolId,
                                   @Param(value = "type")String type,
                                   @Param(value = "title")String title,
                                   @Param(value = "body")String body);
}